Skip to content

ci: merge the release-please PR automatically - #25

Merged
jflayhart merged 1 commit into
mainfrom
ci/auto-merge-release-pr
Jun 10, 2026
Merged

ci: merge the release-please PR automatically#25
jflayhart merged 1 commit into
mainfrom
ci/auto-merge-release-pr

Conversation

@jflayhart

Copy link
Copy Markdown
Contributor

Problem

Publishing takes two manual merges. Merging the stainless/release code PR runs release-please.yml, which only opens a release PR (version bump + changelog). Nothing publishes until that second PR is also merged.

Fix

Merge the release PR automatically the moment release-please opens/updates it, so a code merge to main flows straight through to a tag + publish with no second manual merge.

gh pr merge --auto is not usable here: the repo has "Allow auto-merge" disabled and main has no required checks, so auto-merge errors with "clean status." The step merges directly with --squash (the only enabled merge method) instead.

Behavior change

Every code merge to main now publishes immediately (continuous release). Mirrors linq-team/linq-node#72.

main has no required checks and repo-level auto-merge is disabled, so
gh pr merge --auto is unavailable here. Merge the release PR directly when
release-please opens it, so a code merge to main flows straight through to a
tag and publish without a second manual merge.
@jflayhart
jflayhart merged commit d6c4dea into main Jun 10, 2026
5 checks passed
@jflayhart
jflayhart deleted the ci/auto-merge-release-pr branch June 10, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant